package office.action.sale.wrapper;

import office.bo.sale.impl.ProductDetail;
import platform.common.bo.IdentifiableObj;

public class ProductDetailWrapper {
	private String id;
	private String productName; //产品名称
	private String productSpec; //产品规格
	private String speciality;  //产品优缺点
	private String mark;        //备注
	private String rivalId;     //对应的竞争对手
	private String rivalName;     //对应的竞争对手
	/**
	 * 从bo拷贝属性
	 * @param baseBO
	 */
	public void copyToWrapper(IdentifiableObj baseBO){
		ProductDetail bo = (ProductDetail)baseBO;
		this.id = bo.getId().toString();
		this.productName = bo.getProductName();
		this.productSpec = bo.getProductSpec();
		this.speciality = bo.getSpeciality();
		this.mark = bo.getMark();
		this.rivalId = bo.getRivalId();
		this.rivalName = bo.getRivalName();
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getProductName() {
		return productName;
	}

	public void setProductName(String productName) {
		this.productName = productName;
	}

	public String getProductSpec() {
		return productSpec;
	}

	public void setProductSpec(String productSpec) {
		this.productSpec = productSpec;
	}

	public String getSpeciality() {
		return speciality;
	}

	public void setSpeciality(String speciality) {
		this.speciality = speciality;
	}

	public String getMark() {
		return mark;
	}

	public void setMark(String mark) {
		this.mark = mark;
	}

	public String getRivalId() {
		return rivalId;
	}

	public void setRivalId(String rivalId) {
		this.rivalId = rivalId;
	}

	public String getRivalName() {
		return rivalName;
	}

	public void setRivalName(String rivalName) {
		this.rivalName = rivalName;
	}
	
}
